<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>挺赞洗衣</title>
	<meta name="keywords" content="" />
	<meta name="description" content="" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1.0,user-scalable=no">
	<link rel="stylesheet" href="__PUBLIC__/client/css/cui.css?sj={$tj}" />
	<link rel="stylesheet" href="__PUBLIC__/client/css/slick.css?sj={$tj}" />
	<link rel="stylesheet" href="__PUBLIC__/client/css/style.css?sj={$tj}" />
	<script type="text/javascript" src="__PUBLIC__/client/js/jquery.js"></script>
    <script type="text/javascript" src="__PUBLIC__/client/js/lib.js?sj={$tj}"></script>
</head>
<body class="mhome">
	<div class="viewport">
		<!--<div class="sitemap">
			<a href="{:U('Client/wo/woinfo')}" class="goback"></a>更换地址
		</div>-->
		<!--end header-->
		<div id="bd" class="bd8 fix">
            <form id="bbForm">
			<input type="hidden" name="id" value="{$session.auntie_user.id}" />
                <p>
                    <em class="empty"></em><input type="text" class="ayaddress bankmc" name="bankmc" id="hm-inp-6" placeholder="银行名称(如：工行)" value="{$session.auntie_user.bankmc}" />
                    银行名称
                </p>
				<p>
                    <em class="empty"></em><input type="text" class="ayaddress bankkh"  name="bankkh" id="hm-inp-6" placeholder="请输入新卡号" value="{$session.auntie_user.bankkh}" />
                    银行卡号
                </p>
                <div>
                    <input id="submit" type="button" value="确定" class="hm-inp-4 btn-yellow btn-yellow-2">
                </div>
            </form>
		</div>
		<div class="c"></div>
		<!--end #bd-->
	</div>
	
	<script src="__PUBLIC__/business/js/normal.js"></script>
	<script>
		$(function(){
				//下单
				$('#submit').on('click',function(){
					var bankmc=$('.bankmc').val();
					var bankkh=$('.bankkh').val();
					if(!bankmc){
						Msg('请输入银行名称！',2);
						return false;
					}
					if(!bankkh){
						Msg('请输入银行卡号！',2);
						return false;
					}
					 var tourl="{:U('Auntie/api/edit_user')}";
           			 var data=$('#bbForm').serialize();
           			 $.post(tourl,data,function(data){
					    if(data.status!=1){
					    		Msg('更该失败!',2);
					    }else{
					    		Msg('更该成功!',1);
					    }
					 });
				});
		});
	</script>
</body>
</html>